<@t.html>
<div class="container-fluid">
	<div class="row" style="margin-top:10px;">
		<div class="col-md-12">
		<form class="form-horizontal" onsubmit="return false;">
			<@t.select title="可选角色" id="roles" datas=role_list key="id" text="name"  defaultValue="${rid}"> </@t.select>  
			<@t.submitBtn/>
		 </form>
		</div>
	</div>
</div>
 <script type="text/javascript">
 		  var aid='${aid}';
		  function submitRole(){
			  if(aid=="")return;
			  var rid=$('#roles').val();
			  if(rid==""){alert('请选择角色~！');return;}
			  var data='aid='+aid+'&rid='+rid;
			  $ .axsf('admin/admin/grant',data,function(d){
			   		if(d){
				   		 simAlert(d.message);
        			}
			 	});
		 }
    </script>
</@t.html>